<body class="body">
  <div class="container">
      <div class="login">
      <h2>注册</h2>
      <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
        <%= devise_error_messages! %>

        <div class="login">
          <%= f.label :邮箱 %></br>
          <%= f.email_field :email, autofocus: true ,required: true%>
        </div>

        <div class="login">
          <%= f.label :密码 %>
          <br />
          <%= f.password_field :password, autocomplete: "off" ,required: true%>
        </div>

        <div class="login">
          <%= f.label :再次输入密码 %>
          <%= f.password_field :password_confirmation, autocomplete: "off" ,required: true%>
        </div>

        <div class="login-button">
          <%= f.submit "注册" %>
        </div>
      <% end %></br>

      <%= render "devise/shared/links" %>
      </div>
  </div>

</body>
